﻿using System.Collections.Generic;
using SqlHelper;

namespace Service.Manager
{
    public class AreasService : Repository<Model.Manager.Areas>
    {
        /// <summary>
        /// 获取省份  1
        /// </summary>
        /// <param name="model"></param> 
        public string GetProvince(Model.Manager.Areas model)
        {
            return "";
        }

        /// <summary>
        /// 获取城市  2
        /// </summary>
        /// <param name="model"></param> 
        public string GetCity(Model.Manager.Areas model)
        {
            return "";
        }

        /// <summary>
        /// 获取县城  3
        /// </summary>
        /// <param name="model"></param> 
        public string GetTown(Model.Manager.Areas model)
        {
            return "";
        }

        /// <summary>
        /// 获取城镇  4
        /// </summary>
        /// <param name="model"></param> 
        public string GetStreet(Model.Manager.Areas model)
        {
            return "";
        }

        /// <summary>
        /// 根据id查询全称
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public string GetFullName(int id)
        {
            return "";
        }

        /// <summary>
        /// 根据ID查询model
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public Model.Manager.Areas GetAreaModel(int id)
        {
            return GetEntityByValue<Model.Manager.Areas>(id);
        } 
    }
}
